package cn.edu.hust.sse.software7.class3.service;

import java.util.List;

import cn.edu.hust.sse.software7.class3.entities.EBProduct;

public interface EBProductService {
	boolean isExistProduct(EBProduct prod);

	void addProduct(EBProduct product);

	void updateProduct(EBProduct product);

	void deleteProduct(EBProduct product);

	void deleteAllProduct(List<EBProduct> product);

	List<EBProduct> getProdsByCategory(Long categoryId);

	List<EBProduct> getProdsByProdName(String prodName);

	List<EBProduct> getProdsByLowestPriceScope(Float low, Float high);

	List<EBProduct> getProdsByHightestBidPriceScope(Float low, Float high);

	EBProduct getProdById(Long prodId);

	List<EBProduct> getProds();

	List<EBProduct> getProdsByFreightPriceScope(Float fromPrice, Float toPrice);

	List<EBProduct> getProdsByFilter(String filter);

	List<EBProduct> getByProdsId(List<Long> prodsId);
}
